<!-- my-page.vue -->
<template>
  <div>
    <!-- 
        name(必传)：应用名称
        url(必传)：应用地址，会被自动补全为http://localhost:3000/index.html
        baseroute(可选)：基座应用分配给子应用的基础路由，就是上面的 `/my-page`
       -->
    <micro-app name='app1' url='http://localhost:3001/'></micro-app>
  </div>
</template>
<script>

import microApp from '@micro-zoe/micro-app'
import Vue from 'vue'
import { ACCESS_TOKEN } from '@/store/mutation-types'
export default {
  data() {
    return {
    }
  },
  mounted() {
    let token = Vue.ls.get(ACCESS_TOKEN)
    microApp.setGlobalData({ token: token })
  }
}
</script>